var findMedianSortedArrays = function(nums1, nums2) {
  let midian = 0
  let nums = nums1.concat(nums2).sort((a,b) => {return a - b})
  let evenLen = nums.length / 2 - 1
  let oddLen = (nums.length +1) / 2 - 1 
  if (nums.length % 2 == 0){ midian = (nums[evenLen] + nums[evenLen + 1]) / 2}
  else { midian = nums[oddLen] }
  return midian.toFixed(5)
};